home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / COMMUNIC / 2500.ZIP / PORTFIND.ZIP / PCMAG_PF.DOC < prev    next >
Text File  |  1990-07-07  |  5KB  |  99 lines

  1.  
  2.  
  3.  
  4.          Reprinted Article From The October 17, 1989 PC Magazine Advisor
  5.         
  6.         
  7.            By: Lori Grunin                 Title: Beyond COM2
  8.         
  9.         
  10.         LETTER:
  11.         
  12.         I've  been stumped by IBM's design limit for serial  ports.   I'd 
  13.         like  to add a COM3 and COM4 beyond the two already installed  in 
  14.         my 386 clone.  I put the new board in and properly set the  jump-
  15.         ers,  but when I attempted to set the  communications  parameters 
  16.         via DOS's MODE command, I got "illegal device" error messages.
  17.         
  18.         I've looked for books to tell me how to get around this  problem, 
  19.         but to no avail.  Is there a software driver that I must  install 
  20.         to effect valid operation of these ports?
  21.         
  22.             Thomas Emery
  23.             Goleta, California
  24.         
  25.         RESPONSE:
  26.         
  27.         IBM's original PC architecture supported only two COM ports,  and 
  28.         although compatible makers, and eventually IBM, added more serial 
  29.         capability, there are still no standard addresses or IRQ  (Inter-
  30.         rupt Request) lines for the additional ports.
  31.         
  32.         The addresses for COM1 and COM2 are 3F8h and 2F8h,  respectively, 
  33.         with COM1 on IRQ4 and COM2 on IRQ3.  When you install more serial 
  34.         ports, COM3 usually uses 3E8h and IRQ4, while COM4 uses 2E8h  and 
  35.         IRQ3.   Unfortunately, some I/O card makers like to  blaze  their 
  36.         own  trails; IBM even added uncommon COM port addresses and  IRQs 
  37.         to the long list of PS/2 eccentricities.
  38.         
  39.         The  DOS MODE command doesn't work with serial ports  above  COM2 
  40.         because  DOS gets its I/O information from the BIOS, which  finds 
  41.         out  what's  installed where in your system during  the  Power-On 
  42.         Self-Test  (POST).   The POST checks only for the first  two  in-
  43.         stalled ports.
  44.         
  45.         To  get  around this problem, communications  software  and  some 
  46.         serial  peripherals  (such  as mice)  will  occasionally  support 
  47.         higher COM ports by addressing them directly, rather than  making 
  48.         DOS function calls.  Of course, if your peripherals don't support 
  49.         these  extra  ports or you need to redirect data using  the  MODE 
  50.         command, that's where trouble arises.
  51.         
  52.         There  are a couple of public-domain utilities that allow you  to 
  53.         append  your COM port information to the BIOS, making  the  ports 
  54.         DOS-accessible.   COMSET (COMSET.ARC) and Port  Finder  (PF2.ARC) 
  55.         are available in the "general hardware" data library of the IBMHW 
  56.         forum  on Compuserve; Port Finder can also be obtained  from  its 
  57.         author,  mcTRONic Systems (7426 Cornwall Bridge Ln., Houston,  TX 
  58.         77041;(713)462-7687).
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.         
  66.  
  67.  
  68.  
  69.  
  70.         Both  packages activate COM3 and COM4 (if they're  installed,  of 
  71.         course),  and  require DOS 3.3 or later.  They basically  do  two 
  72.         things: activate the extra ports by giving the BIOS the  address-
  73.         es,  and provide utilities for swapping the addresses  among  the 
  74.         different  ports.   Address-swapping allows programs  that  don't 
  75.         support  COM3  and COM4 to access them.  Software  that  directly 
  76.         addresses the ports will usually be unaffected.
  77.         
  78.         Keep  in mind, however, that you probably won't be able  to  swap 
  79.         two ports that share an IRQ (such as COM1 and COM3) if you've got 
  80.         a  mouse  attached to one of them, because the  system  will  get 
  81.         confused when the interrupt triggers.
  82.         
  83.         Port Finder is the more flexible of the two.  In addition to  the 
  84.         aforementioned  features, it provides the same  capabilities  for 
  85.         LPT3,  including swapping among printer ports.   Furthermore,  it 
  86.         lets you easily restore all your original settings.
  87.         
  88.         Even if you think you've correctly configured the board, it can't 
  89.         hurt  to  double check a couple of things.  If you've got  a  bus 
  90.         mouse,  for instance, make sure that you're not stepping  on  its 
  91.         IRQ; although interrupt sharing is one of the touted features  of 
  92.         the PS/2, PCs can't do it very well.
  93.         
  94.         Also, don't leave any port holes-if you've got three, they should 
  95.         be COM1,COM2, and COM3, not COM1,COM2, and COM4. [END]
  96.  
  97.  
  98.  
  99.